﻿using System.Collections;
using System.Collections.Generic;

namespace NlpApp.Model
{
    /// <summary>
    /// 分组配置
    /// </summary>
    public class UieModelConfigList
    {
        /// <summary>
        /// Gets or sets the isline.是否换行处理 默认true
        /// </summary>
        /// <value>
        /// The isline.
        /// </value>
        public string Isline { get; set; } = "true";
        /// <summary>
        /// Gets or sets the regexmate.匹配正则
        /// </summary>
        /// <value>
        /// The regexmate.
        /// </value>
        public string Regexmate { get; set; }
        /// <summary>
        /// Gets or sets the nodes object.具体节点配置
        /// </summary>
        /// <value>
        /// The nodes object.
        /// </value>
        public List<UieModelConfig> NodesObj { get; set; }
    }
    /// <summary>
    /// 节点配置
    /// </summary>
    public class UieModelConfig
    {
        /// <summary>
        /// Gets or sets the code.输出标签 xpath值
        /// </summary>
        /// <value>
        /// The code.
        /// </value>
        public string Code { get; set; }
        /// <summary>
        /// Gets or sets the name.用于机器学习的取值
        /// </summary>
        /// <value>
        /// The name.
        /// </value>
        public string Name { get; set; }
        /// <summary>
        /// Gets or sets the extracttype.提取类型 默认第一个，classify 分类 ；defualt 固定值，distinctlist去重列表
        /// </summary>
        /// <value>
        /// The extracttype.
        /// </value>
        public string Extracttype { get; set; }
        /// <summary>
        /// Gets or sets the key.相同的key去除重复等使用
        /// </summary>
        /// <value>
        /// The key.
        /// </value>
        public string Key { get; set; }
        public string Priority { get; set; }
        /// <summary>
        /// Gets or sets the value.取值 以,分割 默认使用name得值
        /// </summary>
        /// <value>
        /// The value.
        /// </value>
        public string Value { get; set; }
        /// <summary>
        /// Gets or sets the mustbehindname.必须在什么名称后面
        /// </summary>
        /// <value>
        /// The mustbehindname.
        /// </value>
        public string Mustbehindname { get; set; }
        /// <summary>
        /// Gets or sets the result.输出结果值的配置
        /// </summary>
        /// <value>
        /// The result.
        /// </value>
        public string Result { get; set; }
        /// <summary>
        /// Gets the nodes object.子节点配置列表
        /// </summary>
        /// <value>
        /// The nodes object.
        /// </value>
        public List<UieModelConfig> NodesObj { get; set; }
        /// <summary>
        /// Gets or sets the regexextract.提取正则配置
        /// </summary>
        /// <value>
        /// The regexextract.
        /// </value>
        public string Regexextract { get; set; }
        /// <summary>
        /// Gets or sets the type.与父节点类型relation标识关联关系
        /// </summary>
        /// <value>
        /// The type.
        /// </value>
        public string PType { get; set; }

    }
}
